﻿using System;

namespace Outcoder.UserOptionsModel.UserOptions
{
	public class RangeUserOption : UserOptionBase<double>
	{
		/* TODO: [DV] Comment. */
		public RangeUserOption(
			Func<string> titleFunc,
			string settingKey,
			Func<double> defaultValueFunc)
			: base(titleFunc, settingKey, defaultValueFunc)
		{
			TemplateNameFunc = () => "Range";
		}

		double minimum;
		
		public double Minimum
		{
			get
			{
				return minimum;
			}
			set
			{
				minimum = value;
			}
		}

		double maximum = 1;

		public double Maximum
		{
			get
			{
				return maximum;
			}
			set
			{
				maximum = value;
			}
		}
	}
}